package com.example.eeuse.model;

import lombok.Data;

import java.util.List;

@Data
public class KibanaResp<T> {
    private int took;
    private boolean timed_out;
    private Shards _shareds;
    private Hits<T> hits;
    @Data
    public static class Shards{
        private int total;
        private int successful;
        private int skipped;
        private int failed;
    }

    @Data
    public static class Hits<T>{
        private Total total;
        private String max_score;
        private List<Hit<T>> hits;
    }

    @Data
    public static class Total{

        private int value;
        private String relation;
    }

    @Data
    public static class Hit<T>{
        private String _index;
        private String _id;
        private double _score;
        private T _source;
    }

}
